/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/12 下午5:47
 * LastModified: 2020/03/12 15:42:12
 */

package com.qolome.knowledge.design.pattern.bridge.demo.messgae;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月12日 15:28:05 */
public class Test {

    public static void main(String[] args) {


        IMessage message = new SmsMessage();
        AbstractMessage abstractMessage = new NormalMessage(message);
        abstractMessage.sendMessage("加班","Qolome");
        message = new EmailMessage();
        abstractMessage = new UrgentMessage(message);
        abstractMessage.sendMessage("离职","Qolome");

    }
}
